﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Docentric.Examples.Data.BusinessObjects.DataModel
{
    public class ProductCategory
    {
        public long Id { get; set; }
        public string Name { get; set; }
		public int ProductCount
		{
			get
			{
				if (_products == null) return 0;
				return _products.Count;
			}
		}

        private List<Product> _products = new List<Product>();
        public List<Product> Products 
        {
            get
            {
                return _products;
            }
        }
    }
}
